FROM registry.cn-hangzhou.aliyuncs.com/tan90/openjdk:17-slim

LABEL mainatiner="tan90" \
      company="江苏铁人科技有限公司" \
      address="南通市崇州大道60号南通创新区紫琅科技城13-A号楼602室"

WORKDIR /app

VOLUME /app/logs

EXPOSE 9009

ENV JVM_OPT="-Duser.timezone=GMT+8 -Xms128m -Xmx256m"

COPY target/*.jar app.jar

ENTRYPOINT ["/bin/sh", "-c", "java $JVM_OPT -jar app.jar"]